var express = require('express');
var http = require('http');
var app = express();

// app.get('/index.html/:id?/:name?', function(req, res){
// app.get('/*x.html/:id?/:name?', function(req, res){
// app.get('/*x.html', function(req, res){
// app.get('/b*/c*d.html', function(req, res){
// app.get(/\/(\d+)/, function(req, res){
// app.get(/\/(\d+)$/, function(req, res){
app.get('/index.html/:id(\\d+)/:name', function(req, res){	

	var str = '';
	console.log(req.params);
	
	if(req.params.id)
		str += 'id:' + req.params.id;
	if(str != "")
		str += "<br/>";
	if(req.params.name)
		str += "name: " + req.params.name;	
	res.send(str);
});


app.listen(1337, 'localhost');

